<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
  PUBLIC "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd">
<topic id="topic1"><title id="cy20941">DROP LANGUAGE</title><body><p id="sql_command_desc">Removes a procedural language.</p><section id="section2"><title>Synopsis</title><codeblock id="sql_command_synopsis">DROP [PROCEDURAL] LANGUAGE [IF EXISTS] <varname>name</varname> [CASCADE | RESTRICT]</codeblock></section><section id="section3"><title>Description</title><p><codeph>DROP LANGUAGE</codeph> will remove the definition of the previously registered procedural
        language. You must be a superuser or owner of the language to drop a language.</p></section><section id="section4"><title>Parameters</title><parml><plentry><pt>PROCEDURAL</pt><pd>Optional keyword - has no effect.</pd></plentry><plentry><pt>IF EXISTS</pt><pd>Do not throw an error if the language does not exist. A notice is
issued in this case. </pd></plentry><plentry><pt><varname>name</varname></pt><pd>The name of an existing procedural language. For backward compatibility,
the name may be enclosed by single quotes. </pd></plentry><plentry><pt>CASCADE</pt><pd>Automatically drop objects that depend on the language (such as functions
written in that language). </pd></plentry><plentry><pt>RESTRICT</pt><pd>Refuse to drop the language if any objects depend on it. This is
the default. </pd></plentry></parml></section><section id="section5"><title>Examples</title><p>Remove the procedural language <codeph>plsample</codeph>: </p><codeblock>DROP LANGUAGE plsample;</codeblock></section><section id="section6"><title>Compatibility</title><p>There is no <codeph>DROP LANGUAGE</codeph> statement in the SQL standard.
</p></section><section id="section7"><title>See Also</title><p><codeph><xref href="ALTER_LANGUAGE.xml#topic1" type="topic" format="dita"/></codeph>,
            <codeph><xref href="CREATE_LANGUAGE.xml#topic1" type="topic" format="dita"
        /></codeph></p></section></body></topic>
